#include<iostream>
#include<string>
#include<map>
using namespace std;
const int  N = 1e5 + 10;
string s[N];
int n;
map<string, int>mp;
int main()
{
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> s[i];
	}
	int ans = 1;
	for (int i = 0; i < n; i++) {
		if (s[i] == "younik") {
			break;
		}
		if (!mp[s[i]]) {
			mp[s[i]]++;
			ans++;
		}
	}
	cout << ans << endl;
	return 0;
}